package com.gold.config.client;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties("spring.cloud.config.retry")
public class RetryProperties
{
    long initialInterval = 1000L;
    double multiplier = 1.1D;
    long maxInterval = 2000L;
    int maxAttempts = 6;

    public long getInitialInterval()
    {
        return this.initialInterval;
    }

    public void setInitialInterval(long initialInterval)
    {
        this.initialInterval = initialInterval;
    }

    public double getMultiplier()
    {
        return this.multiplier;
    }

    public void setMultiplier(double multiplier)
    {
        this.multiplier = multiplier;
    }

    public long getMaxInterval()
    {
        return this.maxInterval;
    }

    public void setMaxInterval(long maxInterval)
    {
        this.maxInterval = maxInterval;
    }

    public int getMaxAttempts()
    {
        return this.maxAttempts;
    }

    public void setMaxAttempts(int maxAttempts)
    {
        this.maxAttempts = maxAttempts;
    }
}

